import java.util.Arrays;
import java.util.Locale;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: hp
 * Date: 2024-03-14
 * Time: 20:38
 */
public class Test {
    public static void main(String[] args) {
        String str = "name1=zhangsan&name2=lisi";
        String[] s1 = str.split("&");
        for(String s : s1) {
            System.out.println(s);
            String[] ss1 = s.split("=");
            for(String ss : ss1) {
                System.out.println(ss);
            }
        }
    }

    /*public static void main14(String[] args) {
        String str1 = "abab&bbq.aaw";


        *//*String[] strings3 = str1.split("&|\\.");
        for(String s : strings3) {
            System.out.println(s);
        }*//*

        *//*String[] strings = str1.split("&");
        for(String s : strings) {
            System.out.println(s);
        }*//*
        *//*String[] strings1 = str1.split("&",2);
        for(String s : strings1) {
            System.out.println(s);
        }*//*

        *//*String[] strings2 = str1.split("\\.");
        for(String s : strings2) {
            System.out.println(s);
        }*//*
    }*/

    /*public static void main13(String[] args) {
        String str1 = "ababh";
        *//*String str2 = str1.replace('a','l');
        System.out.println(str2);

        String str3 = str1.replace("ab","b");
        System.out.println(str3);*//*

        *//*String str4 = str1.replaceFirst("ab","kkk");
        System.out.println(str4);*//*



        String str5 = str1.replaceAll("ab","kkk");
        System.out.println(str5);
    }*/

    /*public static void main11(String[] args) {
        String str1 = "abcd";
        char[] Array = str1.toCharArray();
        System.out.println(Arrays.toString(Array));
        char[] Array1 = {'b','a','d','h'};
        String str2 = new String(Array1);
        System.out.println(str2);

        String str3 = String.format("%d-%d-%d",2004,1,1);
        System.out.println(str3);
    }*/

    /*public static void main10(String[] args) {
        String str1 = "aaabbb";
        String str2 = "ABCD";
        String str3 = str1.toUpperCase();
        String str4 = str2.toLowerCase();
        System.out.println(str1.toUpperCase());
        System.out.println(str1);
        System.out.println(str3);
        System.out.println(str4);
    }*/

   /* public static void main9(String[] args) {
        int data = Integer.parseInt("1234");
        double data2 = Double.parseDouble("12.31");
        System.out.println(data);
        System.out.println(data2);
    }*/

    /*public static void main8(String[] args) {
        String str1 = String.valueOf(1234);
        String str2 = String.valueOf(new Student("小黄",17));
        System.out.println(str1);
        System.out.println(str2);
    }
*/
    /*public static void main7(String[] args) {
        String str1 = "ajdbdnhb";
        *//*int last = str1.lastIndexOf('j');
        System.out.println(last);*//*
        *//*int last1 = str1.lastIndexOf('d',1);
        System.out.println(last1);*//*
        int last2 = str1.lastIndexOf("dn",2);
        System.out.println(last2);

    }*/

   /* public static void main6(String[] args) {
        String str = "asadc";
        *//*int index = str.indexOf('a',1);
        System.out.println(index);*//*
        *//*int index1 = str.indexOf("sa");
        System.out.println(index1);*//*
        *//*int index2 = str.indexOf("dc",1);
        System.out.println(index2);*//*

    }*/

    /*public static void main5(String[] args) {
        String str = "abcd";
        System.out.println(str.charAt(1));
        int index = str.indexOf('c');
        System.out.println(index);
    }*/

    /*public static void main4(String[] args) {
        String str1 = "abcd";
        String str2 = "BCDA";
        System.out.println(str1.compareToIgnoreCase(str2));
    }*/

    /*ublic static void main3(String[] args) {
        String str1 = "abcd";
        String str2 = "ccda";
        System.out.println(str1.compareTo(str2));
    }*/

   /* public static void main2(String[] args) {
        String str1 = "ABCD";
        String str2 = "abcd";
        System.out.println(str1.equalsIgnoreCase(str2));
    }*/

    /*public static void main1(String[] args) {
        String str1 = "abcd";
        String str2 = "abcc";
        System.out.println(str1.equals(str2));
    }*/
}
